﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UserEdit.aspx.cs" Inherits="Jy123.Web.Manage.User.UserEdit" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="../css/custom/jquery.ui.css" rel="stylesheet" type="text/css" />
    <link href="../css/main.css" rel="stylesheet" type="text/css" />

    <script src="../js/jquery.js" type="text/javascript"></script>

    <script src="../js/jquery.ui.js" type="text/javascript"></script>

    <script src="../js/main.js" type="text/javascript"></script>

    <script src="../../JS/City.js" type="text/javascript"></script>

    <%--<script type="text/javascript">
    function SetSelectValue(){    
        var hidP=document.getElementById('<%=hidProvince.ClientID %>');
        var valueP=hidP.value;
        var hidC=document.getElementById('<%=hidCity.ClientID %>');
        var valueC=hidC.value;
        var selectP=document.getElementById('selProvince'); 
        var selectC=document.getElementById('selCity');
        for(var i=0;i<selectP.options.length;i++){
            var option=selectP.options[i];
            option.selected=false;
            if(option.value==valueP){
                option.selected=true;
            }
        }
        city.GetCity(valueP);        
        for(var i=0;i<selectC.options.length;i++){
            var option=selectC.options[i];
            option.selected=false;
            if(option.value==valueC){
                option.selected=true;
            }
        }
    }
    </script>--%>

    <title>编辑用户信息</title>
</head>
<body>
    <%--<div>
        <span><a href="UserEdit.aspx?userID=<%=this.txtUserID.Value %>">编辑会员基本信息</a> <a href="User/UserFavorite.aspx?userID=<%=this.txtUserID.Value %>">
            编辑爱好信息</a> <a href="UserBase.aspx?userID=<%=this.txtUserID.Value %>">编辑联系信息</a> <a href="UserBasicPrivacy.aspx?userID=<%=this.txtUserID.Value %>">
                编辑联系信息可见度</a></span>
    </div>--%>
    <form id="form1" runat="server">
    <h4>
        <a href="#"><span>会员信息修改</span></a></h4>
    <input type="hidden" id="txtUserID" runat="server" /><input type="hidden" runat="server"
        id="Portrait" />
    <div id="mainbody">
        <table width="100%" border="0" cellpadding="3" cellspacing="1">
            <tr>
                <td align="right" style="width: 200px;">
                    会员姓名
                </td>
                <td align="left" style="width: 678px">
                    <asp:TextBox ID="txtName" runat="server" MaxLength="50"></asp:TextBox><asp:RequiredFieldValidator
                        ID="RequireName" runat="server" ControlToValidate="txtName" Display="Dynamic"
                        ErrorMessage="会员姓名不能为空"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td align="right" style="width: 200px;">
                    电子邮箱
                </td>
                <td align="left" style="width: 678px">
                    <asp:TextBox ID="txtEmail" runat="server" MaxLength="255"></asp:TextBox><asp:RequiredFieldValidator
                        ID="RequiredEmail" runat="server" ControlToValidate="txtEmail" Display="Dynamic"
                        ErrorMessage="电子邮箱不能为空"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td align="right" style="width: 200px;">
                    密码
                </td>
                <td align="left" style="width: 678px">
                    <asp:TextBox ID="txtPwd" runat="server" MaxLength="255" Text="" TextMode="Password"
                        Width="127px"> </asp:TextBox>
                    (如果您不需修改密码，此项不填)<input type="hidden" runat="server" id="txthidPwd" />
                </td>
            </tr>
            <tr>
                <td align="right" style="width: 200px;">
                    所在省
                </td>
                <td align="left" style="width: 678px">
                    <select id="selProvince" onchange="city.GetCity(this.value);" name="selProvince">
                    </select><input type="hidden" id="hidProvince" runat="server" value="" />
                </td>
            </tr>
            <tr id="Tr_City">
                <td align="right" style="width: 200px;">
                    所在市
                </td>
                <td align="left" style="width: 678px">
                    <select id="selCity" name="selCity">
                    </select>
                    <input type="hidden" id="hidCity" runat="server" value="" /><script type="text/javascript">
            city.GetProvince('<% =pid %>');
            city.GetCity('<% =pid %>','<% =cid %>');
                    </script>
                </td>
            </tr>
            <tr>
                <td align="right" style="width: 200px;">
                    状态
                </td>
                <td align="left" style="width: 678px">
                    <asp:RadioButtonList ID="radState" runat="server" RepeatDirection="Horizontal">
                        <asp:ListItem Selected="True" Value="0">等待验证</asp:ListItem>
                        <asp:ListItem Value="1">锁定</asp:ListItem>
                        <asp:ListItem Value="2">正常，未验证电子邮件</asp:ListItem>
                        <asp:ListItem Value="5">正常</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr>
                <td align="right" style="width: 200px; height: 26px;">
                    登录次数
                </td>
                <td align="left" style="width: 678px; height: 26px;">
                    <span id="InviterID4" runat="server">
                        <asp:Label ID="labLoginNumber" runat="server"></asp:Label>
                    </span><span id="spanLoginNumber" runat="server"></span>
                </td>
            </tr>
            <tr>
                <td align="right" style="width: 200px;">
                    最后登录时间
                </td>
                <td align="left" style="width: 678px">
                    <span id="InviterID3" runat="server">
                        <asp:Label ID="labLastLoginTime" runat="server"></asp:Label>
                    </span><span id="spanLastLoginTime" runat="server"></span>
                </td>
            </tr>
            <tr>
                <td align="right" style="width: 200px;">
                    最后登录IP
                </td>
                <td align="left" style="width: 678px">
                    <span id="InviterID2" runat="server">
                        <asp:Label ID="labLastLoginIP" runat="server"></asp:Label>
                    </span><span id="spanLastLoginIP" runat="server"></span>
                </td>
            </tr>
            <tr>
                <td align="right" style="width: 200px; height: 26px;">
                    注册时间
                </td>
                <td align="left" style="width: 678px; height: 26px;">
                    <span id="InviterID1" runat="server">
                        <asp:Label ID="labregTime" runat="server"></asp:Label>
                    </span>
                </td>
            </tr>
            <tr>
                <td align="right" style="width: 200px;">
                    注册IP
                </td>
                <td align="left" style="width: 678px">
                    <span id="InviterID0" runat="server">
                        <asp:Label ID="labRegIP" runat="server"></asp:Label>
                    </span>
                </td>
            </tr>
            <tr>
                <td align="right" style="width: 200px;">
                    现金
                </td>
                <td align="left" style="width: 678px">
                    <asp:TextBox ID="txtCash" runat="server" MaxLength="255"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtCash"
                        Display="Dynamic" ErrorMessage="现金不能为空"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td align="right" style="width: 200px;">
                    被访问次数
                </td>
                <td align="left" style="width: 678px">
                    <asp:TextBox ID="txtClick" runat="server" MaxLength="255"></asp:TextBox>
                    <asp:RequiredFieldValidator
                        ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtClick" Display="Dynamic"
                        ErrorMessage="访问次数不能为空"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td align="right" style="width: 200px;">
                    邀请用户ID
                </td>
                <td align="left" style="width: 678px">
                    <span id="InviterID" runat="server">
                        <asp:Label ID="labInviterID" runat="server"></asp:Label>
                    </span>
                </td>
            </tr>
            <tr>
                <td align="right" style="width: 200px">
                </td>
                <td align="left">
                    <asp:Button ID="btnSave" runat="server" onclick="btnSave_Click" Text="保存"  CssClass="btnsty"/>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
